home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 126-150 / scopedisk146 / liner / source / variables.c < prev    next >
C/C++ Source or Header  |  1995-03-19  |  2KB  |  89 lines

  1. /*Variables.c-This module contains no code, only data.  All the other modules*/
  2. /*that reference global variables reference data that is stored here.*/
  3.  
  4. #include <exec/types.h>
  5. #include <exec/exec.h>
  6. #include <intuition/intuition.h>
  7. #include <intuition/intuitionbase.h>
  8. #include <devices/keymap.h>
  9. #include <devices/clipboard.h>
  10.  
  11. struct LineItem               /*'Liner structure definition*/
  12.    {
  13.    struct LineItem *NextItem,*PrevItem;
  14.    UBYTE Level,ItemNumber;
  15.    char Text[80];
  16.    BYTE Highlighted,cont,Future[10];
  17.    };
  18.  
  19. struct LinerPrefs             /*'Liner preferences structure*/
  20. {
  21.    BYTE  DS,Laced,Icons,Level,Screen;
  22.    UBYTE Color[4][3];
  23.    char  Macro[4][80],Name[4][80];
  24.    char  DefaultDir[150],DefPrintDir[150],DefPattern[150];
  25. };
  26.  
  27.  
  28. struct IntuitionBase *IntuitionBase;
  29. struct GfxBase *GfxBase;
  30. ULONG DosBase,IconBase;
  31.  
  32. struct IOStdReq *consoleWriteMsg,*consoleReadMsg;
  33. struct Port *consoleWritePort,*consoleReadPort;
  34. struct IOClipReq ClipboardIO;
  35. struct MsgPort clipboardMsgPort;
  36. struct Process *ThisProc;
  37.  
  38. struct Screen *Screen;
  39. struct Window *Window,*AboutWindow;
  40. struct KeyMap keymap;
  41.  
  42. LONG ARexxSigBit;
  43. APTR ConsoleDevice;
  44. struct LineItem *CharItem,*StartIItem,*EndIItem,*ClipStart,*ClipEnd;
  45. int ButtonState,PtrX,PtrY,LastX,LastY,InvsMode,StartChar,EndChar,InvY,EndIY;
  46. int BLastX,ClipMode,ErrorInTitle=FALSE;
  47. UBYTE Laced,RowsInScreen,StartingLevel,Modified,Odd;
  48. char Indent=0;
  49. char FileName[150+33],SDirName[150],SFileName[33],SExt[18];
  50. char PDName[150+33],PDirName[150],PFileName[33],PExt[18];
  51. BYTE TopInv,BtmInv;
  52.  
  53. UBYTE OLCPos[6][6]=  /*Position of the start of the line for each level*/
  54. {                       /*in each Starting Level mode...*/
  55.    {11,15,19,23,27,31},
  56.    {7,11,15,19,23,27},
  57.    {7,11,15,19,23,27},
  58.    {7,11,15,19,23,27},
  59.    {7,11,15,19,23,27},
  60.    {7,11,15,19,23,27}
  61. };
  62.  
  63. struct LinerPrefs prefs = /*The preferences, with defaults ready to go*/
  64. {
  65.    FALSE,
  66.    FALSE,
  67.    TRUE,
  68.    0,
  69.    1,
  70.    1,2,11,
  71.    13,13,13,
  72.    0,0,0,
  73.    13,5,0,
  74.    "","","","",
  75.    "Macro 1","Macro 2","Macro 3","Macro 4",
  76.    "Liner:Outlines",
  77.    "Liner:Text"
  78. };
  79.  
  80. extern UBYTE MaxNumOnLevel[7]=
  81. {0,53,53,53,53,53,53};
  82.  
  83. char ScreenTitle[18] = {" 'Liner V2.00:  "};
  84.  
  85. struct LineItem *FirstItem,*LastItem,*CurrentItem,*FirstScrnItem,*ScrnBtm;
  86. int CurX,CurY,DispRows;
  87.  
  88. /*End of Variables.c*/
  89.